// ==========  抄表相关 ============//
import constant from '@/utils/constant'
import request from '@/utils/request'

/**
 * 获取水电抄表列表
 */
export function listMeterWaters(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.listMeterWaters,
		method: 'GET',
		data
	})
}

/**
 * 提交水电抄表
 */
export function saveMeterWater(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.saveMeterWater,
		method: 'POST',
		data
	})
}

/**
 * 获取费用项列表
 */
export function listFeeConfigs(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.listFeeConfigs,
		method: 'GET',
		data
	})
}

/**
 * 获取上期抄表
 */
export function queryPreMeterWater(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.queryPreMeterWater,
		method: 'GET',
		data
	})
}

